package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TeaShopEmployeeMapper;
import com.ruoyi.system.domain.TeaShopEmployee;
import com.ruoyi.system.service.ITeaShopEmployeeService;
import com.ruoyi.common.core.text.Convert;

/**
 * 茶店员工Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-12-31
 */
@Service
public class TeaShopEmployeeServiceImpl implements ITeaShopEmployeeService 
{
    @Autowired
    private TeaShopEmployeeMapper teaShopEmployeeMapper;

    /**
     * 查询茶店员工
     * 
     * @param id 茶店员工主键
     * @return 茶店员工
     */
    @Override
    public TeaShopEmployee selectTeaShopEmployeeById(Long id)
    {
        return teaShopEmployeeMapper.selectTeaShopEmployeeById(id);
    }

    /**
     * 查询茶店员工列表
     * 
     * @param teaShopEmployee 茶店员工
     * @return 茶店员工
     */
    @Override
    public List<TeaShopEmployee> selectTeaShopEmployeeList(TeaShopEmployee teaShopEmployee)
    {
        return teaShopEmployeeMapper.selectTeaShopEmployeeList(teaShopEmployee);
    }

    /**
     * 新增茶店员工
     * 
     * @param teaShopEmployee 茶店员工
     * @return 结果
     */
    @Override
    public int insertTeaShopEmployee(TeaShopEmployee teaShopEmployee)
    {
        return teaShopEmployeeMapper.insertTeaShopEmployee(teaShopEmployee);
    }

    /**
     * 修改茶店员工
     * 
     * @param teaShopEmployee 茶店员工
     * @return 结果
     */
    @Override
    public int updateTeaShopEmployee(TeaShopEmployee teaShopEmployee)
    {
        return teaShopEmployeeMapper.updateTeaShopEmployee(teaShopEmployee);
    }

    /**
     * 批量删除茶店员工
     * 
     * @param ids 需要删除的茶店员工主键
     * @return 结果
     */
    @Override
    public int deleteTeaShopEmployeeByIds(String ids)
    {
        return teaShopEmployeeMapper.deleteTeaShopEmployeeByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除茶店员工信息
     * 
     * @param id 茶店员工主键
     * @return 结果
     */
    @Override
    public int deleteTeaShopEmployeeById(Long id)
    {
        return teaShopEmployeeMapper.deleteTeaShopEmployeeById(id);
    }
}
